package Items.Top01.Lease;

import java.util.Scanner;

public class Business {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Manager manager=new Manager();
        System.out.println();
        System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
        System.out.println("金路至尊租赁有限公司欢迎您，请致电138-2500-0250洽谈相关业务");
        System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
        System.out.println("本公司现有"+manager.getPos()+"辆车可租赁");
        while (true){
            System.out.println("1.查看车辆信息\t2.租赁\t3.还车\t4.报废\t5.采购新车\t6.查看租赁记录\t9.退出");
            int choice=in.nextInt();
            if (choice==1){
                manager.showCarList();
            }else if (choice==2){
                manager.lease();
            }else if (choice==3){
                manager.returnCar();
            }else if (choice==4){
                manager.delCar();
            }else if (choice==5){
                manager.add();
            }else if (choice==6){
                System.out.println("此功能未开发");
            }else if (choice==9){
                    break;
            }
            }
            System.out.println("感谢光临并支持本公司及业务");
        }
    }

